interface ListRawState {
	id: string;
	image: string;
	title: string;
	word: string;
	type: "正在阳" | "没阳" | "阳康" | "复阳";
}

interface ListState {
	listData: ListRawState[]
}

const initState: ListState = {
	listData: []
}

const listReducer = (state = initState, action: any): ListState => {
	switch (action.type) {
		case 'setListData': {
			// { type: 'setListData', payload: [{}, {}, {}, {}]  }
			return {
				...state,
				listData: action.payload
			}
		}
		default: return state
	}
}


export default listReducer